ComponentOne Zip for UWP
Zip for UWP Task-Based Help / Access a Specific File within a Zip
In This Topic
    Access a Specific File within a Zip
    In This Topic

    With C1Zip you can access individual files and folders within a Zip archive using the Entries collection. The following example assumes you have already opened a zip file with an instance of C1ZipFile named “_zip”.

    C#
    Copy Code
    // Open an input stream on any entry.
    C1ZipEntry ze = _zip.Entries["someFile.cs"];
    Stream s = ze.OpenReader();
    // Open the StreamReader on the stream.
    StreamReader sr = new StreamReader(s);
    // Use the StreamReader, then close it